#coding:utf-8
import pygtk
pygtk.require('2.0')
import gtk
from winit import winit

class MyWindow(winit):
    def __init__(self, title, width, height):
        winit.__init__(self,title, width, height)

        vbox = gtk.VBox(False, 5)
        label1 = gtk.Label('Nomal')
        vbox.pack_start(label1)
        entry1 = gtk.Entry()
        vbox.pack_start(entry1)
        entry1.show()

        label2 = gtk.Label('Password')
        vbox.pack_start(label2)
        entry2 = gtk.Entry()
        entry2.set_visibility(False)
        vbox.pack_start(entry2)
        entry2.show()
        self.window.add(vbox)
        label1.show()
        label2.show()
        vbox.show()
        self.window.show()

    def main(self):
        gtk.main()

window = MyWindow('PyGTK', 200, 120)
window.main()
